package com.stylefeng.guns.core.user;

import com.stylefeng.guns.core.support.HttpKit;

public class UserKit {

	public final static String userkey = "USER";
	
	public static AbstractUser getUser() {
		
		return (AbstractUser)HttpKit.getRequest().getSession().getAttribute(userkey);
	}
	
	public static void setUser(AbstractUser user) {
		HttpKit.getRequest().getSession().setAttribute(userkey, user);
	}
	
	public static void removeUser() {
		HttpKit.getRequest().getSession().removeAttribute(userkey);
	}
}
